<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{layout}">
<head>
    <title th:text="通知详情"></title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>

<body class="bg-light">
<div layout:fragment="content">
    <div class="card">
        <div class="card-header">
            <h2 th:text="${notice.title} + ' 详情'"></h2>
        </div>
        <div class="card-body">
            <div class="mb-4">
                <h4 class="text-muted">发布时间：
                    <span th:text="${#temporals.format(notice.createTime, 'yyyy-MM-dd HH:mm:ss')}"></span>
                </h4>
            </div>

            <div class="border-top pt-3">
                <h4 class="mb-3">通知内容</h4>
                <div class="bg-light p-4 rounded" th:text="${notice.content}">
                    <!-- 这里会显示通知的具体内容 -->
                </div>
            </div>

            <div class="mt-4">
                <form th:action="@{/api/notices}" method="get">
                    <button type="submit" class="btn btn-secondary">
                        <i class="bi bi-arrow-left"></i> 返回通知列表
                    </button>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>